package com.example.lotterysystem.service;

import com.example.lotterysystem.controller.param.LoginParam;
import com.example.lotterysystem.controller.param.MessageLoginParam;
import com.example.lotterysystem.controller.param.UserRegisterParam;
import com.example.lotterysystem.service.dto.UserDTO;
import com.example.lotterysystem.service.dto.UserLoginDTO;
import com.example.lotterysystem.service.dto.UserRegisterDTO;
import com.example.lotterysystem.service.enums.UserIdentityEnum;

import java.util.List;

public interface UserService {
    /**
     * 注册
     * @param param
     * @return userId
     */
    UserRegisterDTO register(UserRegisterParam param);
    /**
     * 用户登录
     *   1、 密码
     *   2、 验证码
     *
     * @param param
     * @return
     */
    UserLoginDTO login(LoginParam param);

    List<UserDTO> findUserInfo(UserIdentityEnum identityEnum);

    Boolean deleteUser(Long userId);
}
